//
//  MBCollectionView.h
//  添加图片
//
//  Created by MB__Lee on 2018/5/4.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import <UIKit/UIKit.h>

@class MBCollectionView;

@protocol MBCollectionViewDelegate<NSObject>

@optional

// 将picker传出来
-(void)MBCollectionView:(MBCollectionView *)collectionview presentPickerView:(UIImagePickerController *)picker;

//将照片传出来
-(void)MBCollectionView:(MBCollectionView *)collectionview sendImagesToDelegate:(NSMutableArray *)imgMut;

@end





@interface MBCollectionView : UICollectionView
// 后期优化
//@property(nonatomic,assign)NSUInteger maxLines;//最大行数
//@property(nonatomic,assign)NSUInteger maxCount;//照片选择的最大数目

@property(nonatomic,assign)UIEdgeInsets MBEdgeInsets;

@property(nonatomic,weak)id <MBCollectionViewDelegate> MBDelegate;

@property(nonatomic,assign,readonly)CGFloat height;//MBCollectionView 本身的高度

@property(nonatomic,strong,readonly)NSMutableArray <UIImage *>* imageMUT;//选中的照片
@end
